package com.greenold.check.domain.Dto;

import com.greenold.Balance.domain.Balance;
import com.greenold.check.domain.Checkout;
import com.greenold.check.domain.CheckoutBill;
import com.greenold.finance.domain.Bill;
import com.greenold.residing.domain.Contract;

import java.util.List;

public class CheckOutDto extends Checkout {
    private Contract contract;
    private List<Bill> bills;
    private Balance balance;
    private CheckoutBill checkoutBill;

    public Contract getContract() {
        return contract;
    }

    public CheckoutBill getCheckoutBill() {
        return checkoutBill;
    }

    public void setCheckoutBill(CheckoutBill checkoutBill) {
        this.checkoutBill = checkoutBill;
    }

    public void setContract(Contract contract) {
        this.contract = contract;
    }

    public List<Bill> getBills() {
        return bills;
    }

    public void setBills(List<Bill> bills) {
        this.bills = bills;
    }

    public Balance getBalance() {
        return balance;
    }

    public void setBalance(Balance balance) {
        this.balance = balance;
    }
    @Override
    public  String toString() {
        return super.toString()+"CheckOutDto{" +this.contract+","+this.bills+","+this.balance+"}";
    }
}
